using System;
using System.Collections.Generic;
using System.Data;
using DALFactory;
using Model;
using System.Text;
using System.Web;
using System.Web.Caching;
using DBUtility;

namespace BLL
{
    public class SearchControlBuess
    {
        public static DataSet Search(string dataTableName, string primaryKeyName, string strCondition,int pageSize,int pageIndex ,out int pageCount,out int count,out string strSql)
        {
            return SqlHelper.PageList(SqlHelper.LocalSqlServer, dataTableName, null, pageSize, pageIndex, primaryKeyName, false, strCondition, primaryKeyName, false, out pageCount, out count, out strSql);
        }
        public static DataSet Search(string dataTableName,string FieldName, string primaryKeyName, string strCondition, int pageSize, int pageIndex, out int pageCount, out int count, out string strSql)
        {
            return SqlHelper.PageList(SqlHelper.LocalSqlServer, dataTableName, FieldName, pageSize, pageIndex, primaryKeyName, false, strCondition, primaryKeyName, false, out pageCount, out count, out strSql);
        }
    }
}
